Working Number Function

Working number function added to include for loop and return. calling
of the function also added.