Problem 67 in js