I have found that someone has posted kind of criteria for Near wall functions to solve boundary layers. The five types of wall functions are :
1. Standard wall functions (30 < Y+ < 300)
2. Scalable wall functions (Y+ > 11.225)
3.Non-Equilibrium wall functions (30 < Y+ < 300)
4.Enhanced wall treatment (Y+ < 5)
5. User-defined
A problem was solved with converged solution by taking Y+