use the first 1000 digits of sqrt 2 write a program using spark

Use the first 1000 digits of sqrt(2).

In each case, write a program implemented using Spark, to:

  • Find the digit which appears the Maximum number of times.
  • Find the digit which appears the Minimum number of times.
  • Find the Mean of the digits.