Random codes I write for interviews