T-Mobile interview question

Explain the 4 principles of OOP and why we use them. Write a program to find the shortest path in a graph.