Subhasree Project interview question

Aptitude, coding rounds lit bit tough