diamond problem