Musafir.com Interview Question

second codding round