Function Returning Logically Incorrect Values Dev Solutions

Function Returning Logically Incorrect Values Dev Solutions