Some small code spikes for Google Interview