Respuesta :

standard algorithm i think 
It's standard algorithm.