Jacobs interview question

very easy