Jacobs interview question

technical question and checked core subject knowledge