Deloitte Interview Question

they asked to write a code on notepad