JPMorganChase Interview Question

What was your thought process for solving this problem?