Add O(M * N * K**2 * Q) solution to Huarongdao.

HackerRank Weekly Challenges - Week 2
Remove unnecesary transition calculation from Huarongdao.