Solved master mind with the smallest complexity