Pergunta de entrevista da empresa Chalo (India)

Puzzles and Hard leetcode question