some interview algotithms code.