Implement string sum and weighted city picker | Meta Interview Question