Pregunta de entrevista de HyperVerge

I was asked about my approach towards the coding problem