My answers for the programming part of the entrance exam at graduate school of Tokyo University