implement compare_to_rest in interview