Coding Ninjas interview question

Explain morris traversel and write code also