My solutions from Google Foobar. For educational purposes only!!