Wayfair Interview Question

Basic arithmetic questions and reasoning