Here is a hint ... the first one in a) , when a number has !, it defines the factorial of a number, for example lets look at 5!5! = 1*2*3*4*5
so in order to get !1+!2 ..etc , you need to define a method that computes the factorial for any number and then call it for the numbers that you re required such as
result = fact(1) + fact(2) + fact(3)+fact(4)+fact(5);