Chetu interview question

Written is easy , technical round is slightly difficult.