This program resolves triangel puzzel. Random is used here