Compute Total Manual Distance | Coinbase Interview Question