Compare two stores’ profits rigorously | Google Interview Question