Apple Interview Question

implement an iterative solver for matrix eigen value. Algorithm is given, you only have to implement code