It says that my code is taking too long to end its work. Any idea how to make it work faster? I can assure you that the results given are accurate to the task condition.