Frequently asked interview algorithms