Pergunta de entrevista da empresa Thoughtworks

Array Related, Solving the given problem with OOPs Concept