Deloitte interview question

they asked to write a code on notepad