JavaScript code for PE problem 118 added.