Maximize profitable pairs | Akuna Capital Interview Question