there malfunction keyboard letter key work all key keyboard work properlyGiven string text word separate single space lead trailing space string brokenletter distinct letter key break return number word text fully type keyboard Example 1input text hello world brokenletter adoutput 1explanation we type world d key brokenExample 2input text leet code brokenletter ltoutput 1explanation we type leet l t key brokenexample 3input text leet code brokenletter eOutput 0explanation we type word e key break Constraints1 textlength 1040 brokenletterslength 26text consist word separate single space lead trail spacesEach word consist lowercase english lettersbrokenletter consist distinct lowercase english letter