Pergunta de entrevista da empresa Amazon

1st interview: Implement the algorithm for playing minesweeper. 2nd interview: Implement a^n in log(n) time both recursively and iteratively