Need help in processing function

@avro Which part of this are you stuck on?

The best advice I can give you is to break your problem down into smaller steps and then take those steps on one at a time. Which step are you stuck on?