The solution for the challenge in kaggle.