package Ġcom . headless ide as . ad vent of code . de cember 4 Ċ Ċ import Ġcom . headless ide as . ad vent of code . utils . readFile Ċ Ċ fun Ġvalidate ( pass ph rases : ĠList < List < String >>) Ġ{ ĊĠĠĠ Ġprintln ( pass ph rases . filter Ġ{ Ġit . is Distinct () Ġ}. size ) ĊĠĠĠ Ġprintln ( pass ph rases . filter Ġ{ Ġit . no An agrams () Ġ}. size ) Ċ } Ċ Ċ fun ĠList < String >. is Distinct (): ĠBoolean Ġ= Ġdistinct (). size Ġ== Ġsize Ċ Ċ fun ĠList < String >. no An agrams (): ĠBoolean Ġ= Ġdistinct By Ġ{ Ġit . toCharArray (). sorted () Ġ}. size Ġ== Ġsize Ċ Ċ fun Ġmain ( args : ĠArray < String >) Ġ{ ĊĠĠĠ Ġval Ġlines Ġ= ĠreadFile (" 4 . dec . txt ") ĊĠĠĠ Ġvalidate ( lines . map Ġ{ Ġit . split (" Ġ") Ġ}) Ċ }