JPMorganChase interview question

What was your thought process for solving this problem?