Vector to int converter and a start to problem 4

Problem 4 is yet to be solved