How to rank statements by likelihood | Optiver Interview Question