I am trying to solve challenge on one website, and my code behaves strange... It returns undefined... What is interesting: if I print value of "sum" just before re