Process interview question

Explain your thought process in the challenge