Codes for programming interview