Lokesh Machines interview question

nothing that difficult they were pretty basic actually