How to find the size of a passed array inside the function?

Please vsit my code to understand what my query is.