Language: Java. The pull request has one bug. You get three tries to find the line, then a short debrief.
Users drop markers on a map. To avoid duplicates with the same coordinates we keep the points already added in a HashSet and check it before adding.
Codetrap needs JavaScript: the code review happens in your browser.