How To Implement Find S Algorithm